<template>
    <el-dialog style="width: 30%;" v-model="dialogVisible" title="调整异常消费标记" center>
        <el-form
    :model="formData"
    label-width="150px"
    class="demo-ruleForm"
    status-icon
  >
    <el-form-item label="未完成支付单数：" prop="order_num">
      <el-input style="width: 150px;" type="number" min="0" v-model="formData.order_num" />
    </el-form-item>
    
    <el-form-item label="进行中的活动：" prop="activity_num">
      <el-input style="width: 150px;" type="number" min="0" v-model="formData.activity_num" />
    </el-form-item>
    <el-form-item label="异常单待处理数：" prop="except_order_num">
      <el-input style="width: 150px;" type="number" min="0" v-model="formData.except_order_num" />
    </el-form-item>

    <el-form-item>
        <el-button @click="dialogVisible = false">取消</el-button>
        <el-button type="primary" @click="saveRevision">
          提交
        </el-button>
    </el-form-item>
  </el-form>
    </el-dialog>
  </template>
  <script setup>
  import { ref } from 'vue';


  const formData = ref({})

  const dialogVisible = ref(false)
  
  const emit = defineEmits(['saveRevision'])
  
  const saveRevision = () => {
    emit('saveRevision',formData.value)
  }
  
  
  defineExpose({
    dialogVisible,
    formData
  })
  </script>
  <style lang="less" scoped></style>